import {observable, action} from 'mobx'
import { getDetailRecom } from "@/api/index";

class DetailRecom {
    namespace="datil"
    @observable detailRecom=[];
    @observable detailList=[];
    @observable id=""
    @action.bound
    async getDetailRecom(id:number){
        const result = await getDetailRecom(id);
        this.detailRecom=result.data.data.playlist;
        this.detailList=result.data.data.playlist.tracks;
        console.log(result.data.data.playlist);
    }
 
}
export default new DetailRecom();